On average and highest number of flips in pancake sorting

نویسنده

  • Josef Cibulka
چکیده

We are given a stack of pancakes of different sizes and the only allowed operation is to take several pancakes from top and flip them. The unburnt version requires the pancakes to be sorted by their sizes at the end, while in the burnt version they additionally need to be oriented burnt-side down. We present an algorithm with the average number of flips, needed to sort a stack of n burnt pancakes, equal to 7n/4 + O(1) and a randomized algorithm for the unburnt version with at most 17n/12 + O(1) flips on average. In addition, we show that in the burnt version, the average number of flips of any algorithm is at least n + Ω(n/ log n) and conjecture that some algorithm can reach n +Θ(n/ log n). We also slightly increase the lower bound on g(n), the minimum number of flips needed to sort the worst stack of n burnt pancakes. This bound together with the upper bound found by Heydari and Sudborough in 1997 gives the exact number of flips to sort the previously conjectured worst stack −In for n ≡ 3 (mod 4) and n ≥ 15. Finally we present exact values of f(n) up to n = 19 and of g(n) up to n = 17 and disprove a conjecture of Cohen and Blum by showing that the burnt stack −I15 is not the worst one for n = 15.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Some relations on prefix reversal generators of the symmetric and hyperoctahedral group

The pancake problem is concerned with sorting a permutation (a stack of pancakes of different diameter) using only prefix reversals (spatula flips). Although the problem description belies simplicity, an exact formula for the maximum number of flips needed to sort $n$ pancakes has been elusive. In this paper we present a different approach to the pancake problem, as a word problem on the symmet...

متن کامل

on the Problem of Sorting Burnt Pancakes

The “pancake problem” is a well-known open combinatorial problem that recently has been shown to have applications to parallel processing. Given a stack of n pancakes in arbitrary order, all of different sizes, the goal is to sort them into the size-ordered configuration having the largest pancake on the bottom and the smallest on top. The allowed sorting operation is a “spatula flip”, in which...

متن کامل

Pancake Problems with Restricted Prefix Reversals and some Corresponding Cayley Networks

The pancake problem, which has attracted considerable attention [10, 12, 9, 15], concerns the number of prefix reversals or flips needed to sort the elements of an arbitrary permutation. The number of prefix reversals to sort permutations is also the diameter of the often We consider restricted pancake problems, for example when only 3 of the possible n-1 flips are allowed. Let f i denote a fli...

متن کامل

Relative-Order Abstractions for the Pancake Problem

The pancake problem is a famous search problem where the objective is to sort a sequence of objects (pancakes) through a minimal number of prefix reversals (flips). The best approaches for the problem are based on heuristic search with abstraction (pattern database) heuristics. We present a new class of abstractions for the pancake problem called relative-order abstractions. Relative-order abst...

متن کامل

Sorting by Prefix Reversals

The pancake problem, which has attracted considerable attention, concerns the number of prefix reversals needed to sort the elements of an arbitrary permutation. The number of prefix reversals to sort permutations is also the diameter of the often studied n-dimensional Pancake network. We consider restricted pancake problem, when only k of the possible n− 1 prefix reversals are allowed.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Theor. Comput. Sci.

دوره 412  شماره 

صفحات  -

تاریخ انتشار 2011